<template>
	<view class="content"> 这里是首页 </view>
</template>

<script setup>
import emitter from '@/utils/mitt'
import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'

const title = ref('不知道啥情况')
const hehe = ref(null)

emitter.on('back', () => {
	console.log('我这里接受到了')
})

onLoad(params => {
	console.log('执行了呀 啊 啊 啊', params)
})

function goto() {
	uni.navigateTo({
		url: '/pages/index/index2'
	})
}

setTimeout(() => {
	uni.showToast({
		title: '标题',
		duration: 2000
	})
	console.log('hehe', hehe)
}, 3000)
</script>

<style lang="scss">
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	.title {
		font-size: 48rpx;
		color: #8f8f94;
	}
}

.logo {
	height: 200rpx;
	width: 200rpx;
	margin-top: 200rpx;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50rpx;
}

.text-area {
	display: flex;
	justify-content: center;
}
</style>
